{{#unless loading}}
  <div class="user-heading">
    <div class="container">
      <div class="full-width" id='user-menu'>
        <h1>{{name}}<span>{{username}}{{{statusIcon}}}</span></h1>

        {{#if viewingSelf}}
          <button {{action "logout" target="Discourse"}} class='btn'>{{i18n user.log_out}}</button>
        {{/if}}
        {{#if currentUser.staff}}
          <a {{bindAttr href="adminPath"}} class='btn'><i class="icon-wrench"></i>&nbsp;{{i18n admin.user.show_admin_profile}}</a>
        {{/if}}
        <ul class="nav nav-pills">
          <li>
            {{#linkTo 'userActivity'}}{{i18n user.activity_stream}}{{/linkTo}}
          </li>
          {{#if canSeePrivateMessages}}
            <li>
              {{#linkTo 'userPrivateMessages'}}{{i18n user.private_messages}}{{/linkTo}}
            </li>
          {{/if}}
          <li>
            {{#linkTo 'user.invited'}}{{i18n user.invited.title}}{{/linkTo}}
          </li>
          {{#if can_edit}}
            <li>
              {{#linkTo 'preferences'}}{{i18n user.preferences}}{{/linkTo}}
            </li>
          {{/if}}
        </ul>
        <div class='avatar-wrapper'>
          {{boundAvatar model imageSize="120"}}
        </div>
      </div>
    </div>
  </div>
  <div class="container">
    <div class='user-info clearfix'>
      <div class='about-me'>
        {{{bio_excerpt}}}
      </div>
    </div>
  </div>
  <div class="container">
    {{outlet userOutlet}}
  </div>
{{/unless}}
